﻿using System;
using Social.Wordpress;

namespace SocialNetworks.Config
{
    /// <summary>
    /// Summary description for WordPressConfig
    /// </summary>
    public class WordPressConfig : IWordpressConfig
    {
        private BO.Account Account;

        #region Constructors

        public WordPressConfig(BO.Account account)
        {
            this.Account = account;
        }

        #endregion Constructors

        #region IWordpressConfig Members

        public string Username
        {
            get
            {
                return Account.WpUsername;
            }
        }

        public string Password
        {
            get
            {
                //return BLL.Encryption.Decrypt(Account.WpPassword);
                return Account.YtPassword;
            }
        }

        public string BlogUrl
        {
            get
            {
                return Account.WpUrl;
            }
        }

        public void SaveCredentails()
        {
            throw new NotImplementedException();
        }

        #endregion IWordpressConfig Members
    }
}